cmake_minimum_required (VERSION 2.6)
project(G3DMViewer)

find_package(GMath REQUIRED)

set(G3DMViewer_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(G3DMViewer_EXE g3dm_viewer)
set(G3DMViewer_SOURCES 
    ${G3DMViewer_SOURCE_DIR}/main.cpp)

include_directories(${GEngine_SOURCE_DIR})

add_executable(${G3DMViewer_EXE} ${G3DMViewer_SOURCES})

target_link_libraries(${G3DMViewer_EXE}
    ${GEngine_SHARED_LIB})

install(TARGETS ${EXE} DESTINATION bin)
